package hupu.hnlp.hot_buffer.front.appconfig.rmi;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("appconfig.rmi")
@ConfigurationProperties("rmi")
public class Rmi
{
    public List<String> distbuffer;

    // public String getDistbuffer()
    // {
    // return distbuffer.stream().collect(Collectors.joining(","));
    // }


    // public void setDistbuffer(String distbuffer)
    // {
    // this.distbuffer = Arrays.asList(distbuffer.split(",")).stream()
    // .map(String::trim).filter(n -> !n.isEmpty())
    // .collect(Collectors.toList());
    // }

    public void setDistbuffer(List<String> distbuffer)
    {
        this.distbuffer = distbuffer;
    }
    
    public List<String> getDistbuffer()
    {
        return distbuffer;
    }
}
